<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class ReportSetting extends Model
{
    protected $table = 't_report_setting';

    protected $primaryKey = 'id';

    protected $fillable = [
        //声光
        'report_table_name', 'report_table_desc', 'device_type'
    ];

    public function settingField() {
        return $this->hasMany('\App\Models\ReportSettingField', 'table_id', 'id');
    }
}
